<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>
            <form method="post" action="">
                <input type="text" name="title" /><br/>
                <input type="text" name="url" /><br/>
                <select name="id_category">
                    <?php foreach($category as $cat): ?>
                    <option value="<?php echo $cat['id']; ?>"><?php echo $cat['name']; ?></option>
                    <?php endforeach; ?>
                </select>
                <input type="submit" name="submit" value="Post" />
            </form>
        </div>
    </body>
</html>